﻿using UnityEngine;

namespace FutureCore
{
    public class AssetLoaderComponent : MonoBehaviour
    {
        [SerializeField]
        private AssetLoader loader;

        public void SetLoader(AssetLoader loader)
        {
            this.loader = loader;
        }

        private void OnDestroy()
        {
            if (null == loader) return;

            loader.Release();
        }
    }
}